import gtk
from gtkmvc.model import Model


class MyModel(Model):

    address_input = "22 Lance St, Sherwood, Brisbane, Australia"
    url_input = "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=The+Louvre&sll=55.761349,37.641183&sspn=98.222237,316.40625&ie=UTF8&ll=48.861577,2.333715&spn=0,359.993134&t=h&z=18&layer=c&cbll=48.861488,2.333667&panoid=cMMNd74PdSBvjw3vf9PByA&cbp=12,215.93782764574829,,1,4.857160597040976"
    lat_input = "48d 52m 26s"
    long_input = "2d 17m 39s"
    file_input = None
    
    lat_long = None
    pano_id = None
    pano_details = None

    resolution = None
    pano = None

    download_progress = {}

    size_mode = 0
    width = ""
    height = ""
    zoom_mode = 0
    radius = ""
    rotate = ""
    background_mode = 0
    perspectify = True
    invert_x = False
    invert_y = False
    planet = None

    __observables__ = (
        'lat_long', 'pano_id', 'pano_details',
        'download_progress', 'pano')

    def __init__(self):
        Model.__init__(self)

    def clear_search_data(self):
        self.lat_long = None
        self.pano_id = None
        self.pano_details = None

